<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      function Com(name) {
        this.name = name
      }
      //
      // Com.prototype.data
      const c1 = new Com('小红')
      const c2 = new Com('小王')
      console.log(c1, c2)
      c1.prototype.function='123'
    </script>
  </body>
</html>
